// import something here
import { Notify } from 'quasar'
// "async" is optional;
// more info on params: https://quasar.dev/quasar-cli/boot-files
export default async ({ app, router, Vue  } ) => {
  const message ={
    success(msg="处理成功！",){
      Notify.create({  color: "light-green-4",
      icon: "far fa-check-circle",
      position: "top",
      textColor: "white",
      message: msg,
      timeout: "2000",})
    },
    error(msg){
      Notify.create({ color: "red-5",
      textColor: "white",
      icon: "error",
      position: "top",
      timeout: "2000",
      message: "处理失败！"+msg,})

    },
    warn(msg){
      Notify.create({ color: "amber-6",
      textColor: "white",
      icon: "mdi-alert-outline",
      position: "top",
      timeout: "2000",
      message: msg,})
    }

 }
 Vue.prototype.$message = message
}
